package com.jx.driving.response;

import com.jx.driving.message.TimeTerminalResponseMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

@TerminalAnnotation
public class Terminal0x8702Response extends TimeTerminalResponseMessage {

	private static final long serialVersionUID = -7226287814836457099L;
	/**下发用户身份  1.教练  2：考核员  3：安全员  4：学员**/
	@ByteAnnotation(order = 1)
	private short userType;
	/**身份证号**/
	@LimitedStringAnnotation(order = 2, value = 18)
	private String cardCode;

	public short getUserType() {
		return userType;
	}

	public void setUserType(short userType) {
		this.userType = userType;
	}

	public String getCardCode() {
		return cardCode;
	}

	public void setCardCode(String cardCode) {
		this.cardCode = cardCode;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8702Response [userType=").append(userType).append(", cardCode=").append(cardCode)
				.append("]");
		return builder.toString();
	}

}
